//
//  EmptyDataView.m
//  QianJinDai
//
//  Created by 千金贷 on 15/11/24.
//  Copyright (c) 2015年 xuxuan. All rights reserved.
//

#import "EmptyDataView.h"

@implementation EmptyDataView


- (id)initWithEmptyTitle:(NSString *)title
{
    self = [super init];
    if (self) {
        self.frame = CGRectMake(0, 0, kScreenWidth, 85);
        UIImageView *image = [[UIImageView alloc] initWithFrame:CGRectMake((kScreenWidth - 45)/2, 7, 45, 45)];
        image.image = [UIImage imageNamed:@"zanwu"];
        [self addSubview:image];
        
        UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, image.bottom + 10, kScreenWidth, 12)];
        titleLabel.text = title;
        titleLabel.textColor = MidGray;
        titleLabel.textAlignment = NSTextAlignmentCenter;
        titleLabel.font = [UIFont systemFontOfSize:11];
        [self addSubview:titleLabel];
                              
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
